package org.kl.bf.entity.basic;

import java.sql.Timestamp;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.kl.bf.entity.Excel;
import org.kl.bf.entity.IdEntity;

import com.fasterxml.jackson.annotation.JsonFormat;

//JPA标识
@Entity
@Table(name = "basic_operate_logs")
public class OperateLogs extends IdEntity {
	private static final long serialVersionUID = 5554481672137653720L;
	@Excel(exportName = "操作者姓名")
	private String operateName;// 操作者姓名
	@Excel(exportName = "操作者IP")
	private String operateIp;// 操作者IP
	@Excel(exportName = "操作时间")
	private Timestamp operateTime;// 操作时间
	@Excel(exportName = "执行时间")
	private long executionTime;// 执行时间
	@Excel(exportName = "ControllerRequestMapping")
	private String controllerRequestMapping;// ControllerRequestMapping
	@Excel(exportName = "MethodRequestMapping")
	private String methodRequestMapping;// MethodRequestMapping
	@Excel(exportName = "ShiroRequiresPermissions")
	private String shiroRequiresPermissions;// ShiroRequiresPermissions
	@Excel(exportName = "RequestURL")
	private String requestUrl;// RequestURL

	public OperateLogs(){}
	public OperateLogs(String id){
		this.id = id ;
	}
	public String getOperateName() {
		return operateName;
	}

	public void setOperateName(String operateName) {
		this.operateName = operateName;
	}

	public String getOperateIp() {
		return operateIp;
	}

	public void setOperateIp(String operateIp) {
		this.operateIp = operateIp;
	}

	// 设定JSON序列化时的日期格式
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	public Timestamp getOperateTime() {
		return operateTime;
	}

	public void setOperateTime(Timestamp operateTime) {
		this.operateTime = operateTime;
	}

	public long getExecutionTime() {
		return executionTime;
	}

	public void setExecutionTime(long executionTime) {
		this.executionTime = executionTime;
	}

	public String getControllerRequestMapping() {
		return controllerRequestMapping;
	}

	public void setControllerRequestMapping(String controllerRequestMapping) {
		this.controllerRequestMapping = controllerRequestMapping;
	}

	public String getMethodRequestMapping() {
		return methodRequestMapping;
	}

	public void setMethodRequestMapping(String methodRequestMapping) {
		this.methodRequestMapping = methodRequestMapping;
	}

	public String getShiroRequiresPermissions() {
		return shiroRequiresPermissions;
	}

	public void setShiroRequiresPermissions(String shiroRequiresPermissions) {
		this.shiroRequiresPermissions = shiroRequiresPermissions;
	}

	public String getRequestUrl() {
		return requestUrl;
	}

	public void setRequestUrl(String requestUrl) {
		this.requestUrl = requestUrl;
	}

}
